export default function getNavBarHeight() {
	let systemInfo, menuButton, navBarHeight, statusBarHeight, capsuleHeight;

	// #ifdef MP-WEIXIN
	systemInfo = wx.getSystemInfoSync();
	menuButton = wx.getMenuButtonBoundingClientRect();
	statusBarHeight = systemInfo.statusBarHeight; // 状态栏高度
	navBarHeight = (menuButton.bottom + menuButton.top) / 2; // 计算导航栏高度
	capsuleHeight = menuButton.height; // 胶囊按钮高度
	// #endif

	return {
		systemInfo,
		navBarHeight,
		statusBarHeight,
		capsuleHeight
	}
}